{% for fname in fnames %}

{% if fname not in ('Lok159.png', 'Wagon174.png', 'gras13x13.png') %}
Crafty.sprite(100, "pic/{{ fname }}", { {{ fname.replace('/', '_').replace('\\', '_').replace(' ', '_')[:-4] }} : [0,0]});
{% endif %}

{% endfor %}

var allTextures = [ {%for fname in fnames %}
            "pic/{{fname}}"   {%if fname != fnames[-1] %} , {% endif %}
{% endfor %}
];

//Crafty.sprite(159, "pic/Lok159.png", {Lok159 : [0,0]});
//Crafty.sprite(174, "pic/Wagon174.png", {Wagon174 : [0,0]});
//Crafty.sprite(1300, "pic/gras13x13.png", {gras13x13 : [0,0]});